class scoreboard extends eui.Component implements  eui.UIComponent {
	public constructor() {
		super();
		this.skinName = "scoreboardSkin";
		// this.score.text = 0;
	}

	protected partAdded(partName:string,instance:any):void
	{
		super.partAdded(partName,instance);
	}


	protected childrenCreated():void
	{
		super.childrenCreated();
	}
	
	public score;

	addScore(num) {
		this.score.text = String( Number(this.score.text) + Number(num.substr(1)) );
	}

}